package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author Alexander Shidlovsky
 */
public class NoStackFoundDialog extends JDialog {
	private JLabel lblAbout;
	private JButton btnOk;
	private JPanel contentPane = new JPanel();

	public NoStackFoundDialog() {
		setContentPane(contentPane);
		getContentPane().setLayout(null);

		setTitle("Notification");
		setResizable(false);

		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

		setLocation(400, 200);
		setSize(400, 120);

		lblAbout = new JLabel();
		lblAbout.setText("<html>"
				+ "No stack to be picked up was found. You should be more patient :)"
				+ "</html>");
		lblAbout.setBounds(10, 10, 390, 40);

		btnOk = new JButton("OK");
		btnOk.setBounds(140, 50, 89, 23);
		btnOk.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});

		contentPane.add(lblAbout);
		contentPane.add(btnOk);

	}
}
